package cn.zxy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.zxy.moder.Student;

@RestController //Handle
public class BoyController {

    @GetMapping("/test")
    public String test(){
        return "test";
    }

//    student接口
    @GetMapping("/student") //HandlerMethod
    public Student getStudent(){
        return Student.builder().id(1).name("赵生蚝子").build();
    }
}
